//
//  GQHTruckModel.h
//  Xanthium
//
//  Created by GuanQinghao on 27/03/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHBaseModel.h"
#import "GQHRouteModel.h"
#import "GQHCommentModel.h"


@interface GQHTruckModel : GQHBaseModel

/// 车辆信息ID
@property (nonatomic, copy) NSString *qh_truckID;
/// 发布时间
@property (nonatomic, copy) NSString *qh_postTime;
/// 上架状态
@property (nonatomic, copy) NSString *qh_state;

/// 司机ID
@property (nonatomic, copy) NSString *qh_driverID;
/// 司机姓名
@property (nonatomic, copy) NSString *qh_driverName;
/// 司机头像
@property (nonatomic, copy) NSString *qh_driverAvatar;
/// 司机手机号
@property (nonatomic, copy) NSString *qh_driverMobile;
/// 司机评分
@property (nonatomic, assign) CGFloat qh_driverScore;

/// 起始地行政编码
@property (nonatomic, copy) NSString *qh_departureID;
/// 起始地
@property (nonatomic, copy) NSString *qh_departure;
/// 目的地行政编码
@property (nonatomic, copy) NSString *qh_destinationID;
/// 目的地
@property (nonatomic, copy) NSString *qh_destination;
/// 熟车 (关注车辆)
@property (nonatomic, assign) BOOL qh_followed;
/// 备注
@property (nonatomic, copy) NSString *qh_note;

/// 车型编码
@property (nonatomic, copy) NSString *qh_modelCode;
/// 车型
@property (nonatomic, copy) NSString *qh_model;
/// 车辆标准车长
@property (nonatomic, copy) NSString *qh_normalLength;
/// 车辆标准载重
@property (nonatomic, copy) NSString *qh_normalLoading;
/// 车牌号
@property (nonatomic, copy) NSString *qh_licensePlateNumber;
/// 车辆照片
@property (nonatomic, copy) NSString *qh_truckImages;
/// 载货类型编码
@property (nonatomic, copy) NSString *qh_freightTypeID;
/// 载货类型
@property (nonatomic, copy) NSString *qh_freightType;
/// 可载重量 (剩余载重量)
@property (nonatomic, assign) CGFloat qh_loadable;

/// 审核时间
@property (nonatomic, copy) NSString *qh_inspectTime;
/// 审核状态
@property (nonatomic, copy) NSString *qh_inspectState;
/// 审核人
@property (nonatomic, copy) NSString *qh_inspector;

/// 是否是空车(熟车列表)
@property (nonatomic, assign) NSString *qh_free;

/// 路线数组
@property (nonatomic, strong) NSArray<GQHRouteModel *> *qh_routeModelArray;
/// 评论数组
@property (nonatomic, strong) NSArray<GQHCommentModel *> *qh_commentModelArray;


/**
 车辆列表
 "id": "4028b881627b535d01627b7095d30015",
 "sendDatetime": "2018-04-13 09:07:47",
 "state": "01",
 
 "userId": "4028b881627b535d01627b62b96b000a",
 "userName": "司机11",
 "headPortrait": "2b7ed86ad32d482fa1cd064bac948b39.jpg",
 "phone": "18792684152",
 "score": 4.5,
 
 "originId": "长治市 长治县",
 "destinationId": "本溪市 本溪满族自治县",
 "friend": false,
 "note": "专注于",
 
 "vehicleclassificationcode": "普通货车",
 "carLength": "",
 "carLoad": "30",
 "licPlateNum": null,
 "carPhoto": null,
 "canCarryGoods": "",
 "canCarryTonnage": null,
 
 "auditTime": "2018-04-13 09:07:47",
 "auditState": null,
 "auditor": null,
 
 "buFocusOnLineVOs": null,
 "buAssessmentVOs": null
 
 熟车列表
 "userId": "4028b881627b535d01627b62b96b000a",
 "name": "司机11",
 "headPortrait": "4228c1a2692b4465899021eb76b161eb.jpg",
 "avgScore": 4.5,
 
 "friend": true,
 "empty": false
 
 "vehicleclassificationcode": "",
 "carLength": "",
 "carLoad": "30",
 "licPlateNum": "lic006",
 
 空车详情
 同空车列表 buFocusOnLineVOs 和 buAssessmentVOs 内有值
 */

//删除自己发布空车
+ (void)qh_fetchDeleteMyEmptyCarsWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHTruckModel *> *trucks))success failure:(void(^)(NSError *error))failure;

//获取我的发布空车裂变
+ (void)qh_fetchGetMyEmptyCarsWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHTruckModel *> *trucks))success failure:(void(^)(NSError *error))failure;

///  获取空车列表
+ (void)qh_fetchFreeTrucksWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHTruckModel *> *trucks))success failure:(void(^)(NSError *error))failure;

/// 获取熟车列表
+ (void)qh_fetchFollowedTrucksWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHTruckModel *> *trucks))success failure:(void(^)(NSError *error))failure;

/// 获取空车详情
+ (void)qh_fetchFreeTruckInfoWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, GQHTruckModel *truck))success failure:(void(^)(NSError *error))failure;

/// 获取关注的车辆详情
+ (void)qh_fetchFollowedTruckInfoWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, GQHTruckModel *truck))success failure:(void(^)(NSError *error))failure;
@end
